package com.dhsc.local.dao.impl.yykh.yyzlkh;

import com.dhsc.domain.ywzx.yykh.yyzlkh.TbsxwhVo;
import com.dhsc.local.dao.yykh.yyzlkh.ITbsxwhDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName TbsxwhDaoImpl
 * @description: 特别事项维护
 * @author: gx
 * @create: 2024-04-24 15:22:04
 **/
@Repository("tbsxwhdao")
public class TbsxwhDaoImpl implements ITbsxwhDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<TbsxwhVo> queryTbsxwh(TbsxwhVo tbsxwhVo) {
        return localSqlSessionTemplate.selectList("TbsxwhMapper.queryTbsxwh",tbsxwhVo);
    }

    @Override
    public int insertTbsxwh(TbsxwhVo tbsxwhVo) {
        return localSqlSessionTemplate.insert("TbsxwhMapper.insertTbsxwh",tbsxwhVo);
    }

    @Override
    public int updateTbsxwh(TbsxwhVo tbsxwhVo) {
        return localSqlSessionTemplate.update("TbsxwhMapper.updateTbsxwh",tbsxwhVo);
    }

    @Override
    public int deleteTbsxwh(TbsxwhVo tbsxwhVo) {
        return localSqlSessionTemplate.delete("TbsxwhMapper.deleteTbsxwh",tbsxwhVo);
    }
}
